searchOnChannels && !empty($_GET['search'])) {
$channels = User::getAllUsers(true);
clearSearch();
foreach ($channels as $value) {
$contentSearchFound = true;
createChannelItem($value['id'], $value['photoURL'], $value['identification']);
}
reloadSearch();
}
if (!empty($video)) {
$contentSearchFound = true;
$img_portrait = ($video['rotation'] === "90" || $video['rotation'] === "270") ? "img-portrait" : "";
if (empty($_GET['search'])) {
include $global['systemRootPath'] . 'plugin/Gallery/view/BigVideo.php';
}
?>
Trending) {
createGallery(!empty($obj->TrendingCustomTitle) ? $obj->TrendingCustomTitle : __("Trending"), 'trending', $obj->TrendingRowCount, 'TrendingOrder', "zyx", "abc", $orderString, "ASC", !$obj->hidePrivateVideos);
}
if ($obj->SortByName) {
createGallery(!empty($obj->SortByNameCustomTitle) ? $obj->SortByNameCustomTitle : __("Sort by name"), 'title', $obj->SortByNameRowCount, 'sortByNameOrder', "zyx", "abc", $orderString, "ASC", !$obj->hidePrivateVideos);
}
if ($obj->DateAdded) {
createGallery(!empty($obj->DateAddedCustomTitle) ? $obj->DateAddedCustomTitle : __("Date added"), 'created', $obj->DateAddedRowCount, 'dateAddedOrder', __("newest"), __("oldest"), $orderString, "DESC", !$obj->hidePrivateVideos);
}
if ($obj->MostWatched) {
createGallery(!empty($obj->MostWatchedCustomTitle) ? $obj->MostWatchedCustomTitle : __("Most watched"), 'views_count', $obj->MostWatchedRowCount, 'mostWatchedOrder', __("Most"), __("Fewest"), $orderString, "DESC", !$obj->hidePrivateVideos);
}
if ($obj->MostPopular) {
createGallery(!empty($obj->MostPopularCustomTitle) ? $obj->MostPopularCustomTitle : __("Most popular"), 'likes', $obj->MostPopularRowCount, 'mostPopularOrder', __("Most"), __("Fewest"), $orderString, "DESC", !$obj->hidePrivateVideos);
}
if ($obj->SubscribedChannels && User::isLogged() && empty($_GET['showOnly'])) {
$channels = Subscribe::getSubscribedChannels(User::getId());
foreach ($channels as $value) {
$_POST['disableAddTo'] = 0;
createChannelItem($value['users_id'], $value['photoURL'], $value['identification'], $obj->SubscribedChannelsRowCount);
}
}
if ($obj->Categories && empty($_GET['catName']) && empty($_GET['showOnly'])) {
unset($_POST['sort']);
$_POST['sort']['name'] = "ASC";
+ $_POST['rowCount'] = 1000;
$categories = Category::getAllCategories();
foreach ($categories as $value) {
$_GET['catName'] = $value['clean_name'];
unset($_POST['sort']);
$_POST['sort']['v.created'] = "DESC";
$_POST['sort']['likes'] = "DESC";
$videos = Video::getAllVideos("viewableNotUnlisted", false, true);
if (empty($videos)) {
continue;
}
?>
!
.